<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<pre>
  <code class="language-python">
    import pandas                     #导入数据统计模块
    data = {
      'A': [1,2,3,4,5],
      'B': [6,7,8,9,10],
      'C': [11,12,13,14,15]
    }
    data__frame = pandas.DataFrame(data)
    print(data__frame)
  </code>
</pre>
<script>
  var obj = {
    name: {}
  }

  class TestSocket extends WeakMap {
    constructor(obj) {
      super()
      this.obj = obj
    }

    setSocket () {
      const socket = new WebSocket('ws://192.168.1.70:8081/jessica/34020000001420000123/34020000001320000001')
      this.set(this.obj.name, socket)

      console.log(obj.test)
    }

    destroy () {
      const socket = this.get(this.socket)
      socket.close()
    }

  }

  obj.test = new TestSocket(obj)

  obj.test.setSocket()

</script>
</body>
</html>
